package com.hibase.core.rule.constant;

/**
 * 规则类型
 */
public enum RuleFieldType {

    QUERY("QUERY", "查找项"),
    VALUE("VALUE", "值项"),
    RANGE_QUERY("RANGE_QUERY", "范围查询项"),
    //TODO 表分类
    NORMAL_ONE("RANGE_QUERY", "普通一对一"),
    NORMAL_MULT("RANGE_QUERY", "普通一对多"),
    RANGE_ONE("RANGE_ONE", "范围查询一对一"),
    RANGE_MULT("RANGE_NULT", "范围查一对多"),


    PRIORITY("PRIORITY", "优先级"),
    RANGE_LEFT("RANGE_LEFT", "左范围"),
    RANGE_RIGHT("RANGE_RIGHT", "右范围"),
    LEFT_OR_RIGHT("LEFT_OR_RIGHT","左开右合"),
    LEFT_OR_RIGHT_AWAY("LEFT_OR_RIGHT_AWAY","左合右开"),
    //TODO 查找项从100开始
    QUERY_SORT_START_NUMBER("100","查找项开始排序值"),
    VALUE_SORT_START_NUMBER("300","值项开始排序值"),
    RANGE_SORT_LEFT("200","范围查询字段排序起始值（左边）"),
    RANGE_SORT_RIGHT("201","范围查询字段排序起始值（右边）"),
    PRIORITY_SORT("202","优先级字段排序起始值"),
    //TODO 值项从300开始
    REMARK("999","备注字段排序起始值"),


    PRIORITY_FIELD("priority","备注字段排序起始值"),
    RANGE_LEFT_FIELD("range_left","备注字段排序起始值"),
    RANGE_RIGHT_FIELD("range_right","备注字段排序起始值"),
    REMARK_FIELD("remarks","备注字段排序起始值"),


    FIELD_MOVE_UP("moveUp","上移"),
    FIELD_MOVE_DOWN("moveDown","下移"),
    ;

    private String value;
    private String key;

    RuleFieldType(String key, String value){

        this.key = key;
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public String getKey() {
        return key;
    }
}
